package com.bruceliu.mapper;

import com.bruceliu.bean.Desk;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @BelongsProject: RestaurantSystem
 * @BelongsPackage: com.bruceliu.mapper
 * @Author: bruceliu
 * @QQ:1241488705
 * @CreateTime: 2020-02-29 09:42
 * @Description: TODO
 */
@Mapper
public interface DeskMapper {

    /**
     * 01-查询列表
     * @param desk
     * @return
     */
    public List<Desk> getDesks(Desk desk);

    /**
     * 02-新增
     * @return
     */
    public  int addDesk(Desk desk);


    /**
     * 03-删除是一个逻辑删除 本质是一个更新
     * @param id
     * @return
     */
    public int deleteDesk(int id);


    /**
     * 04-预定或者退桌
     * @param desk
     * @return
     */
    public int changeState(Desk desk);


    /**
     * 05-根据ID查询
     * @param id
     * @return
     */
    public Desk getById(int id);

}
